<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ page session="false"%>
<html>
<head>
<title>DEV Information Page</title>
</head>
<body>
	<h3 style="text-align: right;"> Welcome ${DEVInfo.username} | 
		<a href="${pageContext.request.contextPath}">Logout</a> | 
		<a href="${pageContext.request.contextPath}/changePasswordDEV/${DEVInfo.username}">Change Password</a>
	</h3>
	<div align="center" style="padding-top: 50px;">
		<h1>DEV Information</h1>
		<form:form action="" method="POST">
			<table style="font-size: 15pt">
				<tbody>
					<tr>
						<td>Project</td>
						<td>
							<c:forEach items="${DEVInfo.projectUsers}" var="projects">
								${projects.project.code}
							</c:forEach>
						</td>
					</tr>
					<tr>
						<td>PM</td>
						<td>
								
							<c:forEach items="${project}" var="users">
									<c:if test="${users.user.group.code eq 'PM' }">
										${users.user.fullname}
									</c:if>
								</c:forEach>
						</td>
					</tr>
					<tr>
						<td>Username</td>
						<td>
							${DEVInfo.username}
						</td>
					</tr>
					<tr>
						<td>Full Name</td>
						<td>${DEVInfo.fullname}</td>
					</tr>
					<tr>
						<td>Address</td>
						<td>${DEVInfo.address}</td>
					</tr>
					<tr>
						<td>Phone</td>
						<td>${DEVInfo.phone}</td>
					</tr>
					<tr>
						<td colspan="2" style="text-align: right; padding-top: 10px;">
							<a href="${pageContext.request.contextPath}/updateDEV/${DEVInfo.username}"><input type="button" name="updateDev" value="Update" /></a>
						</td>
					</tr>
				</tbody>

			</table>
		</form:form>
	</div>
</body>
</html>
